package shake.jsf;

import javax.faces.application.Application;
import javax.faces.application.ApplicationFactory;

public class ShakeApplicationFactory extends ApplicationFactory {

	private final ApplicationFactory delegate;

	public ShakeApplicationFactory(ApplicationFactory af) {
		delegate = af;
	}

	@Override
	public Application getApplication() {
		return new ShakeApplication(delegate.getApplication());
	}

	@Override
	public void setApplication(Application application) {
		delegate.setApplication(application);
	}

}
